/*!
\copyright  Copyright (c) 2020 Qualcomm Technologies International, Ltd.\n
          All Rights Reserved.\n
          Qualcomm Technologies International, Ltd. Confidential and Proprietary.
\version    %%version
\file       main.c
\brief      Main application task
*/

#include <connection.h>
#include <panic.h>
#include <pio.h>
#include <ps.h>
#include <boot.h>
#include <os.h>
#include <boot.h>
#include <operator.h>
#include <stdio.h>

#include "source_main.h"
#include "headset_main.h"
#include "system.h"

#define MODE_TX_RX   (1 << 16)  //PI16

extern void _init(void);
void _init(void)
{
    SystemInit();

    source_init();
}

/*! \brief Application entry point

  This function is the entry point for the application, it performs basic
  initialisation of the application task state machine and then sets
  the state to 'initialising' which will start the initialisation procedure.

  \returns Nothing. Only exits by powering down.
*/
int main(void)
{
    OsInit();

    source_main();
    /* We should never get here, keep compiler happy */
    return 0;
}
